import {GenAddTableProps} from "@/pages/system/tool/gen/add/Stateless/interfaces";
import {GenAddTableData} from "@/pages/system/tool/gen/add/interfaces";
import {PageContainer} from "@ant-design/pro-layout";
import ProCard from "@ant-design/pro-card";
import CProForm from "@/components/CProForm";
import {EditableProTable} from "@ant-design/pro-table";
import style from "@/pages/system/tool/gen/add/Stateless/style.less"

export default (props: GenAddTableProps<GenAddTableData, GenAddTableData>) => {


  return (
    <PageContainer>
      <ProCard>
        {/*// @ts-ignore*/}
        <CProForm className={style.form} {...props.formProps}/>
        <EditableProTable className={style.table} {...props.tableProps}/>
      </ProCard>
    </PageContainer>
  )
}
